using System;
using System.Collections.Generic;
using System.Text;

namespace Bots.Index
{
    public class IdleTasker : ITask
    {
        /// <summary>
        /// millisencod unit
        /// </summary>
        private int timeSpan = 100;

        public IdleTasker(int timeSpan)
        {
            this.timeSpan = timeSpan;  
        }

        public IdleTasker() { 
            
        }

        #region ITask Members
        log4net.ILog logger = log4net.LogManager.GetLogger(typeof(IdleTasker));
        public void Execute()
        {
            logger.Info("Idle Task Starting....");
            System.Threading.Thread.Sleep(this.timeSpan);
        }

        #endregion
    }
}
